package com.gary.springcloud.service;

import com.gary.springcloud.entity.CommonResult;
import org.springframework.stereotype.Component;

/**
 * @author peng_rui
 * @date 2022/4/10
 * 必须加上 component注解
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<String> hystrixOk() {
        return new CommonResult<>(200, "服务器繁忙。。。");
    }

    @Override
    public CommonResult<String> hystrixTimeout() {
        return new CommonResult<>(200, "服务器繁忙。。。");
    }
}
